<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>upload</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  
  <body>
  		<h3>文件上传</h3>
  		<!-- 
  			enctype="multipart/form-data" : 把上传的文件转换成二进制
  		 -->
  		<s:form action="uploadAction_upload.action" enctype="multipart/form-data">
  			<s:file name="resource"></s:file>
  			<s:submit></s:submit>
  		</s:form>
  		<hr>
  		<h3>文件下载</h3>
  		<!-- 
  			enctype="multipart/form-data" : 把上传的文件转换成二进制
  		 -->
  		<s:form action="uploadAction_download.action" enctype="multipart/form-data">
  			<s:submit name="download" value="下载"></s:submit>
  		</s:form>
  		<hr>
  </body>
</html>
